/**
<<<<<<< HEAD
 * Copyright (C) 2020-2021 杭州优诗科技有限公司
=======
 * Copyright (C) 2019-2021 杭州优诗科技有限公司
>>>>>>> 3b028d6f1d2dd25e613c470e379df4ff28f4935e
 *
 * This file is part of UnitSpirit.
 * @author wupingfu
 * @version 1.0.0
 * 
 **/
package com.unitspirit.sample.pab;

import static org.junit.Assert.assertEquals;

import java.util.ArrayList;
import java.util.List;

import org.junit.Test;
import org.mockito.Mockito;
import org.powermock.api.mockito.PowerMockito;

/**
 * @author wupf
 *
 */
public class SampleMockReturnStrict_WHTest {
	/*
	 * @Test public void test_parseDataAll_1()throws Exception {
	 * SampleMockReturnStrict cSampleMockReturnStrict=new SampleMockReturnStrict();
	 * int actual= cSampleMockReturnStrict.parseDataAll();
	 * System.out.println(actual); assertEquals(0, actual); }
	 */

	
	@Test
	public void test_parseDataAll_2()throws Exception
	{
		SampleMockReturnStrict cSampleMockReturnStrict=Mockito.spy(new SampleMockReturnStrict());
		ArrayList<String> list=new ArrayList<String>();
		//PowerMockito.doReturn(list).when(cSampleMockReturnStrict,"parseData");
		PowerMockito.when(cSampleMockReturnStrict.parseData()).thenReturn(list);
		
		List<String> list2=new ArrayList<String>();
		PowerMockito.doReturn(list2).when(cSampleMockReturnStrict,"parseData2");
		//PowerMockito.when(cSampleMockReturnStrict.parseData2()).thenReturn(list2);
		
		int actual= cSampleMockReturnStrict.parseDataAll();
		System.out.println("actual:"+actual);
		assertEquals(0, actual);
	}
}
